package com.hedd.shop.pojo.qo;

import java.math.BigDecimal;

/**
 * @author ludi
 * @date:2020/8/30 23:31
 * @description:修改购物车传输的参数
 */
public class CartUpdateQO {
    private Integer num;
    private Integer cartId;
    private BigDecimal totalPrice;

    public CartUpdateQO() {
    }

    public CartUpdateQO(Integer num, Integer cartId, BigDecimal totalPrice) {
        this.num = num;
        this.cartId = cartId;
        this.totalPrice = totalPrice;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "CartUpdateQO{" +
                "num=" + num +
                ", cartId=" + cartId +
                ", totalPrice=" + totalPrice +
                '}';
    }
}
